package com.uls.hdh.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uls.hdh.mapper.HdhUserWeightsMapper;
import com.uls.hdh.domain.HdhUserWeights;
import com.uls.hdh.service.IHdhUserWeightsService;

/**
 * 权重管理Service业务层处理
 * 
 * @author hdh
 * @date 2024-11-11
 */
@Service
public class HdhUserWeightsServiceImpl implements IHdhUserWeightsService 
{
    @Autowired
    private HdhUserWeightsMapper hdhUserWeightsMapper;

    /**
     * 查询权重管理
     * 
     * @param userWeightId 权重管理主键
     * @return 权重管理
     */
    @Override
    public HdhUserWeights selectHdhUserWeightsByUserWeightId(Long userWeightId)
    {
        return hdhUserWeightsMapper.selectHdhUserWeightsByUserWeightId(userWeightId);
    }
    @Override
    public HdhUserWeights selectHdhUserWeightsByUsersId(Long usersId)
    {
        return hdhUserWeightsMapper.selectHdhUserWeightsByUsersId(usersId);
    }
    /**
     * 查询权重管理列表
     * 
     * @param hdhUserWeights 权重管理
     * @return 权重管理
     */
    @Override
    public List<HdhUserWeights> selectHdhUserWeightsList(HdhUserWeights hdhUserWeights)
    {
        return hdhUserWeightsMapper.selectHdhUserWeightsList(hdhUserWeights);
    }

    /**
     * 新增权重管理
     * 
     * @param hdhUserWeights 权重管理
     * @return 结果
     */
    @Override
    public int insertHdhUserWeights(HdhUserWeights hdhUserWeights)
    {
        return hdhUserWeightsMapper.insertHdhUserWeights(hdhUserWeights);
    }

    /**
     * 修改权重管理
     * 
     * @param hdhUserWeights 权重管理
     * @return 结果
     */
    @Override
    public int updateHdhUserWeights(HdhUserWeights hdhUserWeights)
    {
        return hdhUserWeightsMapper.updateHdhUserWeights(hdhUserWeights);
    }

    /**
     * 批量删除权重管理
     * 
     * @param userWeightIds 需要删除的权重管理主键
     * @return 结果
     */
    @Override
    public int deleteHdhUserWeightsByUserWeightIds(Long[] userWeightIds)
    {
        return hdhUserWeightsMapper.deleteHdhUserWeightsByUserWeightIds(userWeightIds);
    }

    /**
     * 删除权重管理信息
     * 
     * @param userWeightId 权重管理主键
     * @return 结果
     */
    @Override
    public int deleteHdhUserWeightsByUserWeightId(Long userWeightId)
    {
        return hdhUserWeightsMapper.deleteHdhUserWeightsByUserWeightId(userWeightId);
    }
}
